package com.theaf.core.mq.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 消息体封装
 *
 * @author luojuan
 * @create 2017-11-28 9:49
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageBody implements Serializable {

        private static final long serialVersionUID = 1234567890L;
        /**
         * 实例名称，必须存在于spring容器里
         */
        private String beanName = "consumerBean";
        /**
         * 实例方法
         */
        private String methodName = "consumerMethod";
        /**
         * 方法参数，非基本类型必须实现序列化接口，跨系统禁用非基本类型
         */
        private Object [] param;
}